package com.stedu.mall.common.service;

import com.github.pagehelper.PageInfo;
import com.stedu.mall.common.bean.Collect;
import com.stedu.mall.common.exception.SteduException;

public interface CollectService {
    boolean insert(Collect collect) throws SteduException;
    boolean delete(Integer id, Integer userid) throws SteduException;

    Collect selectByGoodsIdAndUserId(Integer goodsId,Integer userId);

   PageInfo<Collect> selectBypage(Integer userId, Integer pageNum, Integer pageSize);
}
